<?php // @version $Id: default_login.php 10381 2008-06-01 03:35:53Z pasamio $
defined( '_JEXEC' ) or die( 'Restricted access' );

// Devo essere alla pagina 95
global $Itemid, $mainframe;
if($Itemid != '95') {
	
	// Forzo redirect
	$uri = JFactory :: getURI();
	$mainframe -> redirect(JRoute::_($uri -> toString(array('path', 'query')) . "&Itemid=95"));
}
?>
<form action="<?php echo JRoute::_( 'index.php', true, $this->params->get('usesecure')); ?>" method="post" name="login" id="login" class="login_form <?php echo $this->params->get( 'pageclass_sfx' ); ?>">
	
	<div id="show-message"></div>
	
	<fieldset>
		<p>
			<label for="user" ><?php echo JText::_( 'Username' ); ?></label>
			<input name="username" type="text" class="inputbox" size="20"  id="user" />
		</p>
		<p class="secondo">
			<label for="pass" ><?php echo JText::_( 'Password' ); ?></label>
			<input name="passwd" type="password" class="inputbox" size="20" id="pass" />
		</p>
		
		<?php 
		/*
		<p>
			<label for="rem"><?php echo JText::_( 'Remember me' ); ?></label>
			<input type="checkbox" name="remember" class="inputbox" value="yes" id="rem" />
		</p>
		*/
		?>
		
		<?php 
		/*
		<p>
			<a href="<?php echo JRoute::_( 'index.php?option=com_user&task=lostPassword' ); ?>">
				<?php echo JText::_('Lost Password?'); ?>
			</a>
			
			<?php 
			/* 
			 if ( $this->params->get( 'registration' ) ) : ?>
				<?php echo JText::_('No account yet?'); ?>
				<a href="<?php echo JRoute::_( 'index.php?option=com_user&task=register' ); ?>">
					<?php echo JText::_( 'Register' ); ?>
				</a>
			<?php endif; ?>
		</p>
		*/
		?>
		
		<p>
			<button type="submit" class="confirm"><?php echo JText::_( 'Login' ); ?></button>
		</p>
	
		<noscript><?php echo JText::_( 'WARNJAVASCRIPT' ); ?></noscript>
		<input type="hidden" name="option" value="com_user" />
		<input type="hidden" name="task" value="login" />
		<input type="hidden" name="return" value="<?php echo $this->return; ?>" />
		<?php echo JHTML::_( 'form.token' ); ?>
	</fieldset>
</form>
